package utilities;

import org.zkoss.zul.Window;
import org.zkoss.zul.Chart;
import org.zkoss.zk.ui.HtmlMacroComponent;

import java.util.Map;

public class CategoryChartDataReader extends HtmlMacroComponent {
	
	/*  Set data for chart  */
	public void setData( Map data ){
		( ( Chart )( ( Window )getFellow( "DG_CMAIN" ) ).getFellow( "DG_CCHART" ) ).setVariable( "data", data, true );
	}
	
}
